package VN.EDU.IMIC.DEVELOPER.HATRUNGPHONG.Array_BTVN01;

public class BTVN01_Models {

	public double[] trentb (double[] BangDiem, double diemtb){
		int i,j = 0;
		double[] diemtrentb = new double[100];
		for(i=0; i<=BangDiem.length;i++){ if(BangDiem[i]>=diemtb){
			diemtrentb[j]=i;
			j++;
		}}
		double[] danhsach = new double[j-1];
		
		System.arraycopy(diemtrentb, 0, danhsach, 0, j-1);
		return danhsach;
		}

}
